package com.jianyi.system.dao.user;

import com.jianyi.system.model.entity.SysUser;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface UserDao extends CrudRepository<SysUser, Long>, UserDaoTask {

    SysUser findByUserName(String userName);

    @Query(
            value = "select * from sys_user u order by name ",
            nativeQuery = true
    )
    List<SysUser> tttest();
}
